package cn.mesmile.swagger.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zb
 * @date 2021/4/19 11:34
 * @Description
 */
@ApiModel(value = "返回查询员工结果", description = "返回查询员工结果")
@Data
public class EmployeeVO {

    @ApiModelProperty(value = "用户名", example = "张三", notes = "用户名是唯一的", required = true)
    private String username;

    @ApiModelProperty(value = "密码", example = "admin123", notes = "密码是通过加密存储", required = true)
    private String password;

    @ApiModelProperty(value = "是否发版", example = "true", notes = "true代表发版，false代表未发版", required = true)
    private Boolean release;

    @ApiModelProperty(value = "年龄", example = "18", notes = "代表用户年龄,整数", required = true)
    private Integer age;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "创建时间", example = "2021-04-19 12:20:23", notes = "创建时间", required = true)
    private Date createDateTime;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "修改时间", example = "2021-04-19 12:20:23", notes = "修改时间", required = true)
    private Date modifiedDateTime;

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty(value = "生日", example = "2021-04-19", notes = "生日", required = true)
    private Date birthday;

}
